
const baseURL="http://pcapi-xiaotuxian-front-devtest.itheima.net"
export default function(config){
	return new Promise((resolve,reject)=>{
		uni.request({
			url:baseURL+config.url,
			data:config.data,
			method:config.method,
			success: (res) => {
				resolve(res)
			},
			fail: (err) => {
				reject(err)
			}
		})
	})
}